import { connectRouter, RouterState } from "connected-react-router";
import { combineReducers } from "redux";
import authReducer, { AuthState } from "./auth.reducer";
import { History } from 'history'

export interface AppState {
  router: RouterState,
  auth: AuthState
}

const createrRootReducer = (history: History) =>
  combineReducers({
    router: connectRouter(history),
    auth: authReducer
  })

export default createrRootReducer